<ul class="breadcrumb">
	<li><a href="{$BASE_PATH}intelihelp/tarefa">Tarefa</a></li>
	<li class='active'>Tarefa {$tarefa->getIdTarefa()}</li>
</ul>
<div class='btn-toolbar'>
	<div class='btn-group fRight'>
	{if $tarefa->getStatus()->getFlSituacao() == 1}
		<a href="{$BASE_PATH}intelihelp/tarefa/viewAdicionarAnotacao/id/{$tarefa->getIdTarefa()}" class=' btn btn-info ico-plus' data-target="#myModal" data-toggle="modal">Interação</a>
		<a href="{$BASE_PATH}intelihelp/tarefa/viewAtribuir/id/{$tarefa->getIdTarefa()}" class=' btn btn-info ico-users' data-target="#myModal" data-toggle="modal">Atribuir</a>
		<a href="{$BASE_PATH}intelihelp/tarefa/viewCadastrar/id/{$tarefa->getIdTarefa()}" class=' btn btn-info ico-upgrade' data-target="#myModal" data-toggle="modal">Atualizar</a>
		<a href="{$BASE_PATH}intelihelp/tarefa/viewFechar/id/{$tarefa->getIdTarefa()}" class=' btn btn-info ico-link-out' data-target="#myModal" data-toggle="modal">Fechar</a>
	{else}
		<a href="{$BASE_PATH}intelihelp/tarefa/viewReabrir/id/{$tarefa->getIdTarefa()}" class=' btn btn-info ico-forward' data-target="#myModal" data-toggle="modal">Reabrir</a>
		<a href="{$BASE_PATH}intelihelp/tarefa/viewAvaliar/id/{$tarefa->getIdTarefa()}" class=' btn btn-info ico-star'>Avaliar</a>
	{/if}
	</div>
</div>
<h2>Tarefa {$tarefa->getIdTarefa()}</h2>
<div class='obsGray'>
	<h3>{$tarefa->getDsTitulo()}</h3>
	<h6>
		{$tarefa->getSolicitante()->getGravatar()}
		<small>{$tarefa->getSolicitante()->getDsNome()}</small>
		<small class='timeago' title="{$tarefa->getDtCadastro()->format('Y-m-d H:i:s')}">{$tarefa->getDtCadastro()->format('d/m/Y')}</small>
		<small>Prazo {$tarefa->getDtPrazo()->format('d/m/Y')}</small>
	</h6>
	<div class='lightGray'>
		{$tarefa->getDsTarefa()}
	</div>
</div>
<div class="collapseGroup">
	{assign var='nranotacao' value=count($tarefa->getAnotacoes())}
	{foreach from=$tarefa->getAnotacoes() item=anotacao}
		<div class="boxCollapse active">
			<header data-target="#anotacao{$anotacao->getIdAnotacao()}" data-toggle="collapse">
				<h6>
					{$anotacao->getResponsavel()->getGravatar()}
					<small>{$anotacao->getResponsavel()}</small>
					<small class='timeago' title="{$anotacao->getDtCadastro()->format('Y-m-d H:i:s')}">{$anotacao->getDtCadastro()->format('d/m/Y H:i')}</small>
				</h6>
			</header>
			<div class="collapse in" id="anotacao{$anotacao->getIdAnotacao()}">
				<div class='lightGray'>
					{$anotacao->getDsAnotacao()}
					{$Action->getClass('\Helper\Action\Admin\Arquivo')->download($anotacao->getArquivo())}
				</div>
			</div>
		</div>
		{assign var='nranotacao' value=$nranotacao - 1}
	{/foreach}
</div>